package org.hxyjs.service;

import org.hxyjs.dto.DTO;
import org.hxyjs.entity.Admin;
import org.hxyjs.entity.Admin;
import org.hxyjs.page.PageInfo;

public interface AdminService {
    /**
     * 查询全部学生
     * @return
     */
    public DTO<Admin> getAllAdmins() throws Exception;

    /**
     * 删除学生
     * @param ano
     * @return
     * @throws Exception
     */
    public DTO<Admin> deleteAdminByAno(String ano) throws Exception;
    /**
     *  修改学生
     * @param admin
     * @return
     */
    public DTO<Admin> updateAdminByAno(Admin admin)  throws Exception;
    /**
     *  增加学生
     * @param admin
     * @return
     */
    public DTO<Admin> addAdmin(Admin admin)  throws Exception;

    /**
     * 根据主键查询学生
     * @param ano
     * @return
     * @throws Exception
     */
    public DTO<Admin> getAdminByAno(String ano) throws Exception;

    /**
     *
     * @param pageInfo
     * @return
     * @throws Exception
     */
     public DTO<Admin> getAdminByPage(PageInfo pageInfo ,String cacheId) throws Exception;

    public DTO<Admin> getAdminByPage(PageInfo pageInfo) throws Exception;


}
